export class Instance {
  constructor(
    public id: string,
    public alarmId: string,
    public code: string,
    public alarmName: string,
    public content: string,
    public sendMode: string,
    public level: string,
    public receiver: string,
    public receiverName: string,
    public children: string,
    public isReal: string,
    public startTime: string,
    public endTime: string,
    public isUse: string,

    public type: string,
    public template: string,
    public alarmRules : AlarmRule[] = [],
){}
}

export class AlarmRule {
  alarmId: string;
  orderNumber: string;
  ruleName: string;
  ruleOperation: string;
  ruleValue: string;
  successNext: string;
  failNext: string;
  isUse: string;
}
